﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Citi.Pearl.SchedulerUI;
using Citi.RoutineBase;

namespace Citi.Pearl.ConsoleUI
{
    class CurrentAction : ICurrentAction
    {
        public string Description
        {
            set { Console.WriteLine(value); }
        }

        public void StartLog(string message)
        {

        }

        public void StartLogOnFile(string filePath)
        {

        }

        public void StopLog()
        {

        }

        public void StopLogOnFile()
        {

        }
    }

    class Program
    {
        static void Main(string[] args)
        {
            ICurrentAction action = new CurrentAction();

            var schedulerParameters = new Dictionary<string, object>
                {
                    {"RobotUsername", @"lac\lac_bra_ftools"},
                    {"RobotPassword", "Ferrari3k10"},
                    {"ExecutionPath", @"C:\Projects\mvclab\Citi.Pearl\Citi.Pearl.SchedulerUI\bin\Debug"},
                    {"EmailTemplateId", "638"},
                    {"CRCReportPath", @"\\gruvnascti0009.wlb.lac.nsroot.net\DATA_GRP1\PLANNING\Base Acess\Base_CRC_Expenses_2014.xlsx"},
                    {"PEARLReportPath", @"\\gruvnascti0009.wlb.lac.nsroot.net\DATA_GRP1\PLANNING\Base Acess\Base_PEARL_Expenses_2014.xlsx"},
                    {"CRCControlFile", @"\\gruvnascti0009.wlb.lac.nsroot.net\DATA_GRP1\FPCRelat\CRC\tb_QRY_CRC_2014_1.xlsx"},
                    {"PEARLControlFile", @"\\gruvnascti0009.wlb.lac.nsroot.net\DATA_GRP1\FPCRelat\PEARL\tb_QRY_PEARL_2014_1.xlsx"},
                    {"EmailAddressUsers", "ld41319; nd61955"},
                    {"EmailAddressError", "ld41319; nd61955"}
                };

            new EmailFinished().Start(DateTime.Now, ref action, schedulerParameters);
        }
    }
}
